Model Validation

Model validation is essential in MDE:

Model validation should be run on a regular basis.

Topology of Validation Rules

Because different modeling phases have different objectives, validating the model with a specific goal in essential. Therefore, Capella validation rules are organized in different categories.

Structural conformance to core model

These checks are technical and are provided by the underlying environment Capella is running on. The error messages of this category have no Rule ID’s.

Integrity

This category contains Capella additional rules about the model integrity. For example,

Quality

Quality-related rules check for example that most important elements have descriptions.

Design

Design-related rules gather all business rules within an engineering phase (System Analysis, Logical Architecture, etc.). This set of rules does take into account what is modeled in the previous or following engineering phase.

This category is divided in four sub categories:

The difference between Completeness and Coverage can appear subtle. Completeness is close to being inconsistent (a leaf Function really HAS to be allocated to a Component). But according to the current objectives of the system engineer, this “almost inconsistence” might not be important for the moment. Coverage is more about the risk of forgetting things is the system design, or not to be precise enough.

Usage and Validation Scopes

It is possible to launch contextually the validation command on any Capella element.

Setting a specific objective when validating the model requires both:

  1. To select the scope of the validation (i.e. the root element on which the command is launched)
  2. To activate / deactivate the current rules category in the Preferences (as shown in the windows hereunder).

Activating / deactivating a rule or a rule category is possible from the Preferences window, under the section Model Validation / Constraints / Capella.



For example, it might not be wise to have the Transition Category active or to launch the validation from the root project element if the current work objective is to only focus on Logical Architecture without taking into consideration the System Analysis or the Physical Architecture.

Validation Results

Results are displayed in the Information View.

Some of the rules come with Quick Fixes (automated actions allowing easily solving the issue). The small bulb preceding the rule ID indicates the availability of a Quick Fix for a given rule. The small bulb with a gray repository icon indicates that a multiple quick fix is available. Multiple Quick Fixes can be applied on multiple selected problems (of the same type) at once.





It is possible to export the content of the Information View in an html file, using the Save button () in the Information View toolbar.



The html export of the Information View looks like the following example.



Example of Quick Fix

For example, rule DCOM_3 checks that all leaf Function are correctly allocated to one Component (System, Actor, Logical Component, etc.).

The associated Quick Fix simply consists in opening the contextual allocation dialog.